﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>事件</title>
    <script language="javascript" type="text/javascript" src="../jslib/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="../jslib/prototype.js"></script>
    <script language="javascript" type="text/javascript" src="../jslib/ext.js"></script>
    <script language="javascript" type="text/javascript" src="../jslib/Ctn.event.js"></script>
    <script language="javascript" type="text/javascript">
    $(function(){
        //$('div').addListener('click', fn, {a:3});
        $(document).keypress(function(evt){
            var e = $.event.from(evt);
            if (e.isEnterPress){
                alert('Enter');
            }
        });
    });
    function fn(evt){
        alert(evt.data.a);
    }
    </script>
</head>
<body>
<div>士大夫士大夫按时发射点发撒法</div>
</body>
</html>
